<?php

namespace app\assets;

use yii\web\AssetBundle;
use yii\web\View;

class MuiImageAsset extends AssetBundle {

    public $basePath = '@webroot/assets';
    public $baseUrl = '@web/assets';
    public $css = [
    ];
    public $js = [
        'web/js/mui.zoom.js',
        'web/js/mui.previewimage.js',
    ];

    public $jsOptions = ['position' => View::POS_BEGIN];

    public $depends = ['app\assets\MuiAsset'];

    public function init() {
        parent::init(); // TODO: Change the autogenerated stub
        \Yii::$app->controller->view->registerJs('mui.previewImage();', View::POS_BEGIN);
    }
}